import { IsNotEmpty, IsNumber, MaxLength } from 'class-validator'
import i18n, { i18nMessage } from '@/i18n'
import { ApiProperty } from '@nestjs/swagger'

export class MetaResourceModuleUpdateByIdDto {
  @ApiProperty({ description: 'ID', type: String })
  @IsNotEmpty()
  @IsNumber()
  id: number

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-resource-module-update-by-id.12150132-0'), type: String })
  @MaxLength(64, { message: i18nMessage() })
  name: string

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-resource-module-update-by-id.12150132-1'), type: String })
  @MaxLength(64, { message: i18nMessage() })
  label: string
}
